/***
 * JadeException
 * Exceptions managed in Jade
 * Created 06/01/05
 * Contact: Daniel.Hagimont@imag.fr
 * Author: Daniel Hagimont
 */
 
package fr.jade.util;

public class JadeException extends Exception {

    Exception nested_exception = null;

    /**
     * Create a nested exception.
     * 
     * @param s
     *            Comment associtaed with the exception
     * @param e
     *            Nested exception
     */
    public JadeException(String s, Exception e) {
        super(s);
        nested_exception = e;
    }

    /**
     * Create an exception
     * 
     * @param s
     *            Comment associtaed with the exception
     */
    public JadeException(String s) {
        super(s);
        
    }

    /**
     * Return the nested exception associated with an exception
     * 
     * @return The nested exception
     */
    public Exception getNestedException() {
        return nested_exception;
    }
   

}
